package com.xopencode.stream;

/**
 * @author Mcb
 * @date 2022/4/28
 * @apiNote
 */
public class User {
    private static Ticket ticket = new Ticket();

    public int buy(){
        int i = 0;
        if (ticket.getTicket()>0){
            i = ticket.buy();
        }
        return i;
    }
}
